// JwtConfig.java
package com.csxy.six.config;


import com.csxy.six.JwtUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JwtConfig {

    @Value("${jwt.secret}")
    private String secret;

    @Value("${jwt.expire}")
    private long expire;

    @Bean
    public JwtUtils jwtUtils() {
        return new JwtUtils(secret, expire);
    }
}